package membermodel

// 余额变更日志表

type MemberBalanceLogModel struct {
	MemberBalanceLogDb
	Common
}
type MemberBalanceLogDb struct {
	Id          int    `gorm:"column:id" json:"id"`
	MemberId    int    `gorm:"column:member_id" json:"memberId"`
	OldBalance  int    `gorm:"column:old_balance" json:"oldBalance"`
	NewBalance  int    `gorm:"column:new_balance" json:"newBalance"`
	Amount      int    `gorm:"column:amount" json:"amount"`
	Type        uint8  `gorm:"column:type" json:"type"`
	TradeNo     string `gorm:"column:trade_no" json:"tradeNo"`
	Description string `gorm:"column:description" json:"description"`
	Remark      string `gorm:"column:remark" json:"remark"`
}

func NewMemberBalanceLog() *MemberBalanceLogDb {
	return &MemberBalanceLogDb{}
}

func (m *MemberBalanceLogDb) TableName() string {
	return "member_balance_log"
}
